// luluTiperDlg.h : header file
//

#if !defined(AFX_LULUTIPERDLG_H__AF19AB55_2326_4BE2_B52F_322426FE08F3__INCLUDED_)
#define AFX_LULUTIPERDLG_H__AF19AB55_2326_4BE2_B52F_322426FE08F3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CLuluTiperDlg dialog

class CLuluTiperDlg : public CDialog
{
protected:
	CSystemTray	m_TrayIcon;
	CMenu		m_SysMenu;

// Construction
public:
	void CheckFeast();
	void CheckDaily();
	void StartManager();
	void FillList();
	void ApplyChange();
	void TipIt(CTask t);
	void CheckTask();
	BOOL Init();
	BOOL Add(CTask & t);
	BOOL Edit(CTask & t);
	BOOL Load();
	BOOL Save();
	vector<CTask>	m_tasks;
	vector<CTask>	m_histories;
	RECT m_rect;
	CLuluTiperDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CLuluTiperDlg)
	enum { IDD = IDD_LULUTIPER_DIALOG };
	CEdit	m_editSearch;
	CListCtrl	m_list;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLuluTiperDlg)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CLuluTiperDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMAddTask();
	afx_msg void OnMSetting();
	afx_msg void OnMAbout();
	afx_msg void OnMStartManager();
	afx_msg void OnMExit();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonEdit();
	afx_msg void OnDblclkList2(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonDel();
	afx_msg void OnButtonSearch();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	UINT m_queryTimer;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LULUTIPERDLG_H__AF19AB55_2326_4BE2_B52F_322426FE08F3__INCLUDED_)
